package com.example.trafficexam2.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by Administrator on 2018/12/5/005.
 */
@DatabaseTable(tableName = "all_sense")
public class Sense {

    /**
     * RESULT : S
     * ERRMSG : 成功
     * pm2.5 : 23
     * co2 : 619
     * LightIntensity : 508
     * humidity : 94
     * temperature : 30
     */


    @DatabaseField(useGetSet = true,generatedId = true,columnName = "id")
    private int id;
    @com.google.gson.annotations.SerializedName("pm2.5")
    @DatabaseField(useGetSet = true,columnName = "pm25")
    private int _$Pm25306; // FIXME check this code
    @DatabaseField(useGetSet = true,columnName = "co2")
    private int co2;
    @DatabaseField(useGetSet = true,columnName = "lightIntensity")
    private int LightIntensity;
    @DatabaseField(useGetSet = true,columnName = "humidity")
    private int humidity;
    @DatabaseField(useGetSet = true,columnName = "temperature")
    private int temperature;

    public Sense(int _$Pm25306, int co2, int lightIntensity, int humidity, int temperature) {

        this._$Pm25306 = _$Pm25306;
        this.co2 = co2;
        LightIntensity = lightIntensity;
        this.humidity = humidity;
        this.temperature = temperature;
    }
    public Sense() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    public int get_$Pm25306() {
        return _$Pm25306;
    }

    public void set_$Pm25306(int _$Pm25306) {
        this._$Pm25306 = _$Pm25306;
    }

    public int getCo2() {
        return co2;
    }

    public void setCo2(int co2) {
        this.co2 = co2;
    }

    public int getLightIntensity() {
        return LightIntensity;
    }

    public void setLightIntensity(int LightIntensity) {
        this.LightIntensity = LightIntensity;
    }

    public int getHumidity() {
        return humidity;
    }

    public void setHumidity(int humidity) {
        this.humidity = humidity;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }
    @Override
    public String toString() {
        return "Sense{" +
                "id=" + id +
                ", _$Pm25306=" + _$Pm25306 +
                ", co2=" + co2 +
                ", LightIntensity=" + LightIntensity +
                ", humidity=" + humidity +
                ", temperature=" + temperature +
                '}';
    }
}
